package com.example.demo;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Item {


    public static  final List<Item> ITEM_LIST = new ArrayList<>();
    static {
        ITEM_LIST.addAll(Arrays.asList(
                new Item("KBD-0455892", "Mechanical Keyboard", 100.0f, true),
                new Item( "145256", "Product Docs", 0.0f, false ),
                new Item( "OR-198975", "O-Ring (100)", 10.0f, true)
        ));

    }

    private   String sku;
    private   String descr;
    private   Float price;
    private   Boolean taxable;

    public Item(String sku, String descr, Float price, Boolean taxable) {
        this.sku = sku;
        this.descr = descr;
        this.price = price;
        this.taxable = taxable;
    }

    public String getSku() {
        return sku;
    }

    public String getDescr() {
        return descr;
    }

    public Float getPrice() {
        return price;
    }

    public Boolean getTaxable() {
        return taxable;
    }
}
